home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / FILE-3.24 / README.{_1 < prev   
Text File  |  1999-09-17  |  4KB  |  92 lines

  1. ** README for file(1) Command **
  2. @(#) $Id: README,v 1.22 1997/11/05 16:03:18 christos Exp $
  3.  
  4. This is Release 3.x of Ian Darwin's (copyright but distributable)
  5. file(1) command. This version is the standard "file" command for Linux,
  6. *BSD, and other systems. (See "patchlevel.h" for the exact release number).
  7.  
  8. UNIX is a trademark of UNIX System Laboratories.
  9.  
  10. The prime contributor to Release 3.8 was Guy Harris, who put in megachanges
  11. including byte-order independance.
  12.  
  13. The prime contributor to Release 3.0 was Christos Zoulas, who put
  14. in hundreds of lines of source code changes, including his own
  15. ANSIfication of the code (I liked my own ANSIfication better, but
  16. his (__P()) is the "Berkeley standard" way of doing it, and I wanted UCB
  17. to include the code...), his HP-like "indirection" (a feature of
  18. the HP file command, I think), and his mods that finally got the
  19. uncompress (-z) mode finished and working.
  20.  
  21. This release has compiled in numerous environments; see PORTING
  22. for a list and problems.
  23.  
  24. This fine freeware file(1) follows the USG (System V) model of the file
  25. command, rather than the Research (V7) version or the V7-derived 4.[23]
  26. Berkeley one. That is, the file /etc/magic contains much of the ritual
  27. information that is the source of this program's power. My version
  28. knows a little more magic (including tar archives) than System V; the
  29. /etc/magic parsing seems to be compatible with the (poorly documented)
  30. System V /etc/magic format (with one exception; see the man page).
  31.  
  32. In addition, the /etc/magic file is built from a subdirectory
  33. for easier(?) maintenance.  I will act as a clearinghouse for
  34. magic numbers assigned to all sorts of data files that
  35. are in reasonable circulation. Send your magic numbers,
  36. in magic(4) format please, to the maintainer, Christos Zoulas.
  37.  
  38. LEGAL.NOTICE - read this first.
  39. README - read this second (you are currently reading this file).
  40. PORTING - read this only if the program won't compile.
  41. Makefile - read this next, adapt it as needed (particularly
  42.     the location of the old existing file command and
  43.     the man page layouts), type "make" to compile, 
  44.     "make try" to try it out against your old version.
  45.     Expect some diffs, particularly since your original
  46.     file(1) may not grok the imbedded-space ("\ ") in
  47.     the current magic file, or may even not use the
  48.     magic file.
  49. apprentice.c - parses /etc/magic to learn magic
  50. ascmagic.c - third & last set of tests, based on hardwired assumptions.
  51. core - not included in distribution due to mailer limitations.
  52. debug.c - includes -c printout routine
  53. file.1 - man page for the command
  54. magic.4 - man page for the magic file, courtesy Guy Harris.
  55.     Install as magic.4 on USG and magic.5 on V7 or Berkeley; cf Makefile.
  56. file.c - main program
  57. file.h - header file
  58. fsmagic.c - first set of tests the program runs, based on filesystem info
  59. is_tar.c, tar.h - knows about tarchives (courtesy John Gilmore).
  60. magdir - directory of /etc/magic pieces
  61.     magdir/Makefile - ADJUST THIS FOR YOUR CONFIGURATION
  62. names.h - header file for ascmagic.c
  63. softmagic.c - 2nd set of tests, based on /etc/magic
  64. readelf.[ch] - Standalone elf parsing code.
  65. compress.c - on-the-fly decompression.
  66. internat.c - recognize international `text' files.
  67. print.c - print results, errors, warnings.
  68.  
  69. If your gzip sometimes fails to decompress things complaining about a short
  70. file, apply this patch [which is going to be in the next version of gzip]:
  71. *** -   Tue Oct 29 02:06:35 1996
  72. --- util.c      Sun Jul 21 21:51:38 1996
  73. *** 106,111 ****
  74. --- 108,114 ----
  75.   
  76.       if (insize == 0) {
  77.         if (eof_ok) return EOF;
  78. +       flush_window();
  79.         read_error();
  80.       }
  81.       bytes_in += (ulg)insize;
  82.  
  83. E-mail: christos@astron.com, moraes@deshaw.com
  84.  
  85. Phone: Do not even think of telephoning me about this program. Send cash first!
  86.  
  87. Parts of this software were developed at SoftQuad Inc., 56 Aberfoyle
  88. Cres, # 810, Toronto, Ontario CANADA M8X 2W4.  Phone: 416-239-4801 or
  89. 800-387-2777. Email: mail@sq.com.  Call for information on SGML editing
  90. and browsing, Unix text processing, and customised products on Unix,
  91. DOS and Mac.
  92.